package gae.test;

import java.sql.*;
import gae.db.*;

public class testDAO {

	private Connection conn;
	private PreparedStatement ps;
	private ResultSet rs;
	public int Test(String id,String pwd,String name){
		try{
			conn=gae.db.Dbcon.getCon();
			String sql="insert into test values(?,?,?)";
			ps=conn.prepareStatement(sql);
			ps.setString(1, id);
			ps.setString(2, pwd);
			ps.setString(3, name);
		int result=ps.executeUpdate();
		return result;
		}catch(Exception e){
			return -1;
		}finally{
			try{
				
			}catch(Exception e2){}
		}
		
	}
}
